#ifdef NOT_IN_PROJ
//Copyright 2010 Balazs Keri, Imre Keri
//
//This file is part of FireworksCreator.
//
//FireworksCreator is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//FireworksCreator is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with FireworksCreator.  If not, see <http://www.gnu.org/licenses/>.
//
#ifndef PTVIEW_H
#define PTVIEW_H
#include "view.h"
#include "ui_ptwidget.h"
#include <model/particletemplate_fwd.h>
//
class PtView : public QWidget, public View {
   Q_OBJECT
   Q_DISABLE_COPY(PtView)
public:
   PtView(QWidget *parent = 0);
   ~PtView();
protected:
   void handle_set_attr_group();
   void handle_doc_event(DocEvent *event);
   void handle_attr_event(AttrEvent *event);
private:
   void refresh_cached_attrs();
   void redraw_all();
   //data
private:
   Ui::ptwidget widget;
   model::ParticleTemplate *pt;
};
#endif /* PTVIEW_H */
#endif
